Eclipse Platform
Pre-release 3.0

org.eclipse.ui.activities
Class WorkbenchActivityHelper

java.lang.Object
  extended byorg.eclipse.ui.activities.WorkbenchActivityHelper

public final class WorkbenchActivityHelper
extends Object

A utility class that contains helpful methods for interacting with the activities API.

Since:
3.0

Method Summary
static String createUnifiedId(IPluginContribution contribution)
          Utility method to create a String containing the plugin and local ids of a contribution.
static boolean filterItem(Object object)
          Answers whether the provided object should be filtered from the UI based on activity state.
static boolean isFiltering()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUnifiedId

public static final String createUnifiedId(IPluginContribution contribution)
Utility method to create a String containing the plugin and local ids of a contribution.

Parameters:
contribution - the contribution to use.
Returns:
the unified id.

filterItem

public static final boolean filterItem(Object object)
Answers whether the provided object should be filtered from the UI based on activity state. Returns false except when the object is an instance of IPluginContribution whos unified id matches an IIdentifier that is currently disabled.

Parameters:
object - the object to test.
Returns:
whether the object should be filtered.
See Also:
createUnifiedId(IPluginContribution)

isFiltering

public static final boolean isFiltering()
Returns:
whether the UI is set up to filter contributions (has defined activity categories).

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.